package com.banciyuan.bcywebview.biz.goods.shoppingcart;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.banciyuan.bcywebview.R;


public class ShoppingCartViewHolder extends RecyclerView.ViewHolder {
    ImageView ivGoodsCheckStatus;
    ImageView ivGoodsPic;
    TextView tvGoodsName;
    TextView tvGoodsStyle;
    TextView tvGoodsPrice;
    ImageView ivMinusNum;
    ImageView ivPlusNum;
    TextView tvGoodsNum;
    View viewDeleteItem;

    public ShoppingCartViewHolder(View itemView) {
        super(itemView);
        initView(itemView);
    }

    private void initView(View itemView) {
        ivGoodsCheckStatus = (ImageView) itemView.findViewById(R.id.goods_check_status);
        ivGoodsPic = (ImageView) itemView.findViewById(R.id.iv_goods_pic);
        tvGoodsName = (TextView) itemView.findViewById(R.id.tv_goods_name);
        tvGoodsStyle = (TextView) itemView.findViewById(R.id.tv_goods_style);
        tvGoodsPrice = (TextView) itemView.findViewById(R.id.tv_goods_price);
        ivMinusNum = (ImageView) itemView.findViewById(R.id.view_minus_goods);
        ivPlusNum = (ImageView) itemView.findViewById(R.id.view_plus_goods);
        tvGoodsNum = (TextView) itemView.findViewById(R.id.tv_goods_num);
        viewDeleteItem = itemView.findViewById(R.id.iv_delete_item);
        ivGoodsCheckStatus.setTag(true);
    }
}
